#/bin/bash

core=$1
costo_contexto=$2
costo_cpu=$3
quantum=$4
repeticiones=$5

for ((i=0; i < $repeticiones; i++)) ;
  do ./../simusched lote.tsk $core $costo_contexto $costo_cpu SchedLottery $quantum $RANDOM \
     | grep EXIT \
     | awk '{print$3}'\
     | head -n 1;
done | sort -g | uniq -c;
